import axios from "./index"; //这是被加工过的axios

// 分类列表 标签栏
export function addArticle(params) {
  return axios.post("/api/add_article", params); //return出的是promise 传参
}
//获取七牛上传token
export function getUploadToken() {
  return axios.get("/upload/token");
}
//上传七牛
export function uploadQiniu(formData) {
  return axios.post("https://upload-z1.qiniup.com", formData);
}
//search
export function search(params) {
  return axios.get("/api/search", {
    params,
  });
}
